package link.gpt.service;

import com.github.pagehelper.PageInfo;
import link.gpt.pojo.NewsDetail;

/**
 * @version V1.0A
 * @uthor gpt
 * @Project holiday_task
 * @Package link.gpt.service
 * @Description: ${TODO}
 * @Date 2021/10/7 15:47
 */
public interface NewsDetailService {

   /**
    * 根据标题查询,标题为null则查询全部
    * @param title
    * @param num
    * @param size
    * @return
    */
   PageInfo<NewsDetail> findAllByTitleAndPage(String title, int num, int size);

   /**
    * 删除新闻
    * @param newsId
    * @return
    */
   int deleteNews(Integer newsId);

}
